﻿using UnityEngine;
using System.Collections;

public class GravityButton : IngameButtonAction {
	public override void doAction() {
		GameObject player = GameObject.FindGameObjectWithTag("Player");
		GameObject level = GameObject.Find("Level");
		player.GetComponent<ChangeGravity>().startRotation(level.transform.right, true);
		GameObject.Find ("GravityButtonSpot").GetComponent<Light> ().intensity = 0;
	}
}
